import { Injectable } from '@angular/core';
import { UtilService } from '../util.service';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/toPromise';
// import { SERVERURL } from '../../config/config.json';

@Injectable()
export class BannerService {

    public bannerurl: any;
    constructor(
        public utilservice: UtilService

    ) { this.bannerurl = '/api/index/bannerList' }

    /**
     * banner
     */
    public getBanner() {
        let url = this.bannerurl;
        return this.utilservice.get(url);
    }

}
